package com.ai.aicontact.common.entity;
 

import javax.persistence.*;

/***************
 *author: autogen
 *version: 2016-08-14 21:52:44.853
 */
@Entity
@Table(name = "SYS_STATIC_DATA")
public class SysStaticData implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "SYS_STATIC_DATA";

    /**${param.comment} */
	public static final String ALIAS_CODE_TYPE = "CODE_TYPE";
    /**${param.comment} */
	public static final String ALIAS_CODE_VALUE = "CODE_VALUE";
    /**${param.comment} */
	public static final String ALIAS_CODE_NAME = "CODE_NAME";
    /**${param.comment} */
	public static final String ALIAS_CODE_DESC = "CODE_DESC";
    /**${param.comment} */
	public static final String ALIAS_CODE_TYPE_ALIAS = "CODE_TYPE_ALIAS";
    /**${param.comment} */
	public static final String ALIAS_SORT_ID = "SORT_ID";
    /**${param.comment} */
	public static final String ALIAS_STATE = "STATE";
    /**${param.comment} */
	public static final String ALIAS_EXTERN_CODE_TYPE = "EXTERN_CODE_TYPE";
	
	
	@Id
	@Column(name = "CODE_TYPE", unique = true, nullable = false)
    public java.lang.String codeType;
  
	@Id
	@Column(name = "CODE_VALUE", unique = true, nullable = false)
    public java.lang.String codeValue;
  
 	@Column(name = "CODE_NAME")
    public java.lang.String codeName;
  
 	@Column(name = "CODE_DESC")
    public java.lang.String codeDesc;
  
 	@Column(name = "CODE_TYPE_ALIAS")
    public java.lang.String codeTypeAlias;
  
 	@Column(name = "SORT_ID")
    public java.lang.Integer sortId;
  
 	@Column(name = "STATE")
    public java.lang.String state;
  
 	@Column(name = "EXTERN_CODE_TYPE")
    public java.lang.String externCodeType;
  





	public java.lang.String getCodeType() {
		return this.codeType;
	}
	
	public void setCodeType(java.lang.String value) {
		this.codeType = value;
	}

	public java.lang.String getCodeValue() {
		return this.codeValue;
	}
	
	public void setCodeValue(java.lang.String value) {
		this.codeValue = value;
	}

	public java.lang.String getCodeName() {
		return this.codeName;
	}
	
	public void setCodeName(java.lang.String value) {
		this.codeName = value;
	}

	public java.lang.String getCodeDesc() {
		return this.codeDesc;
	}
	
	public void setCodeDesc(java.lang.String value) {
		this.codeDesc = value;
	}

	public java.lang.String getCodeTypeAlias() {
		return this.codeTypeAlias;
	}
	
	public void setCodeTypeAlias(java.lang.String value) {
		this.codeTypeAlias = value;
	}

	public java.lang.Integer getSortId() {
		return this.sortId;
	}
	
	public void setSortId(java.lang.Integer value) {
		this.sortId = value;
	}

	public java.lang.String getState() {
		return this.state;
	}
	
	public void setState(java.lang.String value) {
		this.state = value;
	}

	public java.lang.String getExternCodeType() {
		return this.externCodeType;
	}
	
	public void setExternCodeType(java.lang.String value) {
		this.externCodeType = value;
	}


	
	public SysStaticData() {
	}
	
	public SysStaticData(boolean qryflag) {
	    if(qryflag){
	    		this.codeType = null;
				this.codeValue = null;
				this.codeName = null;
				this.codeDesc = null;
				this.codeTypeAlias = null;
				this.sortId = null;
				this.state = null;
				this.externCodeType = null;
			    }
	}


	public SysStaticData(
	    java.lang.String inCodeType,
	    java.lang.String inCodeValue,
	    java.lang.String inCodeName,
	    java.lang.String inCodeDesc,
	    java.lang.String inCodeTypeAlias,
	    java.lang.Integer inSortId,
	    java.lang.String inState,
		java.lang.String inExternCodeType
	 ) {
		super();
				this.codeType = inCodeType;
				this.codeValue = inCodeValue;
				this.codeName = inCodeName;
				this.codeDesc = inCodeDesc;
				this.codeTypeAlias = inCodeTypeAlias;
				this.sortId = inSortId;
				this.state = inState;
				this.externCodeType = inExternCodeType;
			}

 


}

